/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BounderyPack;

/**
 *
 * @author mark
 */
public class DirihletPair implements Comparable<DirihletPair>{
    protected int NodeNumber;
    protected double value;

    public DirihletPair(int NodeNumber, double value) {
        this.NodeNumber = NodeNumber;
        this.value = value;
    }

    public int getNodeNumber() {
        return NodeNumber;
    }

    public void setNodeNumber(int NodeNumber) {
        this.NodeNumber = NodeNumber;
    }

    public double getValue() {
        return value;
    }

    public void setValue(double value) {
        this.value = value;
    }

    public int compareTo(DirihletPair o) {
        return this.NodeNumber-o.NodeNumber;
    }

    @Override
    public String toString() {
        return NodeNumber+" "+value;
    }




}
